Add a patch to link libreaddir-rand to libdl
authorSimon McVittie <smcv@debian.org>
Tue, 14 Jun 2016 19:29:18 +0000 (15:29 -0400)
committerSimon McVittie <smcv@debian.org>
Tue, 14 Jun 2016 19:29:23 +0000 (15:29 -0400)
This should fix test failures on Ubuntu (Closes: #826857)

debian/changelog
debian/patches/Link-libreaddir-rand-to-libdl.patch [new file with mode: 0644]
debian/patches/series

index 4fb025cbdb7b06735cc9acd74e976dd630d3f69d..b2cfebd9059e8fbbdbf76136aaea40686fe3ef35 100644 (file)
@@ -8,6 +8,8 @@ ostree (2016.5-4) UNRELEASED; urgency=medium
     up any stray processes even if the test fails
   * If build-time tests fail, try 4 more times to get an idea of
     whether the failure is reproducible
+  * Add a patch to link libreaddir-rand to libdl, which should fix
+    test failures on Ubuntu (Closes: #826857)
 
  -- Simon McVittie <smcv@debian.org>  Sat, 11 Jun 2016 19:52:40 +0100
 
diff --git a/debian/patches/Link-libreaddir-rand-to-libdl.patch b/debian/patches/Link-libreaddir-rand-to-libdl.patch
new file mode 100644 (file)
index 0000000..9e24677
--- /dev/null
@@ -0,0 +1,32 @@
+From: Simon McVittie <smcv@debian.org>
+Date: Sun, 12 Jun 2016 10:25:21 -0400
+Subject: Link libreaddir-rand to libdl
+
+It uses dlsym(). There's no point in being extra-portable here
+because OSTree only targets Linux anyway.
+
+Signed-off-by: Simon McVittie <smcv@debian.org>
+
+Closes: #336
+Approved by: cgwalters
+Applied-upstream: 2016.6, commit:b9e18b83fd195c980c5dffab4bedf3fa79b19a2e
+---
+ Makefile-tests.am | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile-tests.am b/Makefile-tests.am
+index b3d7514..c7e78cf 100644
+--- a/Makefile-tests.am
++++ b/Makefile-tests.am
+@@ -130,7 +130,10 @@ endif
+ test_ltlibraries = libreaddir-rand.la
+ libreaddir_rand_la_SOURCES = tests/readdir-rand.c
+ libreaddir_rand_la_CFLAGS = $(OT_INTERNAL_GIO_UNIX_CFLAGS)
+-libreaddir_rand_la_LIBADD = $(OT_INTERNAL_GIO_UNIX_LIBS)
++libreaddir_rand_la_LIBADD = \
++      -ldl \
++      $(OT_INTERNAL_GIO_UNIX_LIBS) \
++      $(NULL)
+ libreaddir_rand_la_LDFLAGS = -avoid-version
+ if !ENABLE_INSTALLED_TESTS
+ libreaddir_rand_la_LDFLAGS += -rpath $(abs_builddir)
index 865fdd1f8036bfbf067beb7b32026dd6ac78143d..a81a238dd9ac5b29be7627029d4699f7bba52006 100644 (file)
@@ -2,3 +2,4 @@ libtest-show-files-contents-when-assertions-about-them-fa.patch
 test-parent-this-test-requires-user-xattrs.patch
 tests-Use-strict-mode-by-default-for-C-tests.patch
 test-sysroot.js-set-strict-mode-when-sourcing-libtest.sh.patch
+Link-libreaddir-rand-to-libdl.patch